package com.camunda.workflow.domain.entity;

import com.camunda.workflow.common.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.keygen.KeyGenerators;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.camunda.bpm.engine.identity.Tenant;
import org.camunda.bpm.engine.impl.persistence.entity.TenantEntity;

import static com.camunda.workflow.common.consts.CommonCst.KEY_GEN;

/**
 * 租户
 */
@ApiModel
@EqualsAndHashCode(callSuper = true)
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
@Accessors(chain = true)
@Table(value = "sys_tenant")
public class SysTenant extends BaseEntity {
    @Id(keyType = KeyType.Generator, value = KeyGenerators.ulid)
    private String id;
    @ApiModelProperty("租户名称")
    private String name;
    // 操作类型
//    protected Integer revision;
}
